/* --- Desert Outpost (沙漠驿站) Theme --- */

/* --- General & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');

body {
    background-color: #FFF8E7; /* 米色背景 */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><g fill-rule="evenodd"><g fill="%23D4A574" fill-opacity="0.1"><path opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm0-10v-9h-9v9h9zm9-10v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm10 0v-9h-9v9h9zm-10 9v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9z"/><path d="M6 5V0h1v5h5v1H6v5H5V6H0V5h6z"/></g></g></svg>'); /* 沙漠纹理 */
    color: #3E2723; /* 深棕文字 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

a { color: #8B6914; text-decoration: none; transition: color 0.3s; }
a:hover { color: #D4A574; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ma Shan Zheng', cursive; /* 手写体标题 */
    color: #8B6914; /* 棕色 */
}

.do-container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.do-container-show { max-width: 800px; margin: 0 auto; padding: 20px 15px; }

/* --- Header --- */
.do-header { background-color: rgba(255, 248, 231, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid #D4A574; position: sticky; top: 0; z-index: 100; }
.do-header-main { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.do-logo img { max-height: 50px; width: auto; }
.do-nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.do-nav-list li { margin-left: 25px; }
.do-nav-list a { font-weight: bold; font-size: 16px; }
.do-search { display: flex; }
.do-search-input { border: 1px solid #D4A574; background: #FFF8E7; color: #3E2723; border-radius: 20px 0 0 20px; padding: 8px 15px; font-size: 14px; }
.do-search-input::placeholder { color: #8B6914; }
.do-search-btn { background: #D4A574; color: white; border: none; padding: 8px 15px; border-radius: 0 20px 20px 0; cursor: pointer; }
.do-hamburger, .do-nav-overlay { display: none; }

/* --- Main Content --- */
.do-main-content { padding-top: 30px; padding-bottom: 30px; }
.do-notice-bar { background-color: #D4A574; color: white; text-align: center; padding: 10px; margin-bottom: 30px; border-radius: 8px; font-size: 15px; }

/* --- Homepage Waterfall --- */
.do-waterfall-container {
    column-count: 3;
    column-gap: 20px;
}
.do-waterfall-item { 
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}

/* --- List Page Waterfall --- */
.do-list-container {
    column-count: 2;
    column-gap: 20px;
}
.do-list-item { 
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}

/* --- Movie Card --- */
.do-movie-card {
    display: block;
    background: #fff; 
    border-radius: 12px; 
    box-shadow: 0 8px 20px rgba(139, 105, 20, 0.15);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.do-movie-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(139, 105, 20, 0.25); }
.do-card-image { position: relative; }
.do-card-image img { width: 100%; display: block; }
.do-card-rating { position: absolute; top: 10px; right: 10px; background: rgba(212, 165, 116, 0.9); color: white; padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: bold; }
.do-card-content { padding: 15px; }
.do-card-title { font-size: 18px; margin: 0 0 5px; color: #3E2723; }
.do-card-meta { font-size: 13px; color: #8B6914; }

/* --- List Page --- */
.do-breadcrumb { margin-bottom: 20px; font-size: 14px; color: #8B6914; }
.do-breadcrumb a { color: #8B6914; }
.do-pagination { text-align: center; margin-top: 30px; }
.do-pagination a, .do-pagination span { margin: 0 5px; padding: 8px 15px; border: 1px solid #D4A574; color: #8B6914; border-radius: 5px; }
.do-pagination .current { background: #D4A574; color: white; border-color: #D4A574; }

.do-bottom-recommend { margin-top: 40px; }
.do-section-title { text-align: center; font-size: 28px; margin-bottom: 20px; }
.do-scroll-container { display: flex; overflow-x: auto; padding-bottom: 15px; scrollbar-width: thin; scrollbar-color: #D4A574 #FFF8E7; }
.do-scroll-container::-webkit-scrollbar { height: 8px; }
.do-scroll-container::-webkit-scrollbar-thumb { background: #D4A574; border-radius: 4px; }
.do-scroll-item { flex: 0 0 150px; margin-right: 15px; text-align: center; }
.do-scroll-item img { width: 100%; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.do-scroll-item span { font-size: 14px; display: block; margin-top: 8px; color: #3E2723; }

/* --- Show Page --- */
.do-article-content { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.do-article-title { font-size: 36px; text-align: center; margin-bottom: 15px; }
.do-article-meta { text-align: center; color: #8B6914; margin-bottom: 25px; font-size: 14px; }
.do-article-meta span { margin: 0 10px; }
.do-video-player { background: #000; margin-bottom: 25px; border-radius: 8px; overflow: hidden; }
.do-video-player iframe, .do-video-player video { width: 100%; display: block; aspect-ratio: 16/9; }
.do-article-body h3 { font-size: 22px; border-left: 4px solid #D4A574; padding-left: 10px; margin-bottom: 15px; }
.do-article-body p { line-height: 1.8; }

.do-prev-next { display: flex; justify-content: space-between; margin: 30px 0; padding: 20px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.do-prev, .do-next { max-width: 48%; }

.do-related-posts { margin-top: 30px; }
.do-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.do-movie-card-small { display: block; background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); overflow: hidden; }
.do-card-image-small img { width: 100%; display: block; }
.do-card-content-small { padding: 10px; }
.do-card-title-small { font-size: 15px; margin: 0; color: #3E2723; }

/* --- Footer --- */
.do-footer { background: #3E2723; color: #FFF8E7; padding: 40px 0 20px; margin-top: 40px; }
.do-footer-links { display: flex; justify-content: space-between; margin-bottom: 30px; flex-wrap: wrap; }
.do-footer-block { width: 30%; }
.do-footer-title { font-size: 20px; color: #D4A574; border-bottom: 1px solid #8B6914; padding-bottom: 10px; margin-bottom: 15px; }
.do-link-list { list-style: none; padding: 0; }
.do-link-list li { margin-bottom: 8px; }
.do-link-list a { color: #FFF8E7; }
.do-link-list a:hover { color: #D4A574; }
.do-footer-bottom { text-align: center; border-top: 1px solid #8B6914; padding-top: 20px; font-size: 13px; color: #ccc; }
.do-footer-bottom p { margin: 5px 0; }
.do-footer-bottom a { color: #ccc; }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .do-waterfall-container { column-count: 2; }
    .do-list-container { column-count: 1; }
    .do-footer-block { width: 48%; margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .do-nav-list, .do-search { display: none; }
    .do-hamburger { display: block; background: none; border: none; cursor: pointer; z-index: 1001; }
    .do-hamburger span { display: block; width: 25px; height: 3px; background-color: #8B6914; margin: 5px 0; transition: all 0.3s; }
    .do-hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .do-hamburger.is-active span:nth-child(2) { opacity: 0; }
    .do-hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .do-nav-overlay { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 248, 231, 0.98); align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
    .do-nav-overlay.is-active { opacity: 1; visibility: visible; }
    .do-overlay-nav-list { list-style: none; padding: 0; text-align: center; }
    .do-overlay-nav-list li { margin: 20px 0; }
    .do-overlay-nav-list a { font-size: 24px; font-family: 'Ma Shan Zheng', cursive; color: #3E2723; }

    .do-waterfall-container { column-count: 1; }
    .do-related-grid { grid-template-columns: 1fr; }
    .do-footer-block { width: 100%; }
}


/* ========== 差异化特效 ========== */
/*
 * 沙漠驿站 (do-) 模板 - CSS动画与交互特效
 * 设计风格: 沙金棕色暖色系
 */

/* 关键帧动画 */

/* 1. 沙粒漂移背景动画: 应用于主容器背景 */
@keyframes do-sand-drift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 50px;
  }
}

/* 2. 热浪扭曲效果: 应用于图片或特定区块 */
@keyframes do-heat-wave {
  0%, 100% {
    transform: skew(0.2deg, 0.2deg);
  }
  50% {
    transform: skew(-0.2deg, -0.2deg);
  }
}

/* 3. 沙漏翻转动画: 应用于按钮的伪元素 */
@keyframes do-hourglass-flip {
  0% {
    transform: rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: rotate(360deg);
    opacity: 1;
  }
}

/* 基础样式增强 */

/* 为body或主容器应用沙粒背景 */
.do-sand-background {
  /* 建议使用一张非常细微的沙粒纹理图片 */
  background-image: url('path/to/sand-texture.png');
  animation: do-sand-drift 8s linear infinite;
}

/* Hover与Transition效果 */

/* 1. 卡片hover沙尘暴阴影效果 */
.do-card {
  transition: all 0.4s ease-out;
}

.do-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(194, 151, 98, 0.4);
}

/* 2. 按钮hover沙漏动画效果 */
.do-btn {
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, background-color 0.4s ease;
}

.do-btn::before {
  content: '⏳'; /* 使用emoji或图标字体 */
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -0.5em;
  opacity: 0;
  transition: opacity 0.3s;
}

.do-btn:hover::before {
  opacity: 1;
  animation: do-hourglass-flip 1.5s linear infinite;
}

/* 3. 文字/链接hover沙金色渐变 */
.do-link {
  background-image: linear-gradient(to right, #cdaa7d, #e5c185);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: filter 0.3s ease;
}

.do-link:hover {
  filter: brightness(1.2);
}

/* 4. 图片hover热浪效果 */
.do-img-container img {
  transition: transform 0.3s ease;
}

.do-img-container:hover img {
  animation: do-heat-wave 0.5s linear infinite;
}

/* 5. 导航链接hover下划线展开效果 */
.do-nav-link {
  position: relative;
  text-decoration: none;
  padding-bottom: 5px;
}

.do-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #cdaa7d;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.do-nav-link:hover::after {
  width: 100%;
}

/* 6. 额外效果：输入框focus沙金边框 */
.do-input {
  border: 2px solid #ccc;
  transition: border-color 0.4s ease;
}

.do-input:focus {
  border-color: #cdaa7d;
  box-shadow: 0 0 8px rgba(194, 151, 98, 0.5);
}
